package com.parking.mgr.useraccount.model.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.parking.mgr.common.pojo.base.param.BasePageParam;
import com.parking.mgr.common.pojo.base.param.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @ClassName UserInfoParam
 * @Description 添加用户请求参数
 * @Auther: zhijianpu
 * @Date: 2023/5/25
 */
@Data
@ApiModel(description= "添加用户请求参数")
public class UserInfoParam extends BasePageParam {

    /**
     * 主键
     */
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 用户手机号
     */
    @ApiModelProperty(value = "用户手机号")
    @JsonProperty("fMobilePhoneNumber")
    private String fMobilePhoneNumber;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @JsonProperty("fPassword")
    @NotNull(message = "密码不能为空，请检查fPassword参数")
    @Length(min = 8, max = 20, message = "密码长度在8到20位之间")
    private String fPassword;

    @ApiModelProperty(value = "确认密码")
    @JsonProperty("confirmPassword")
    @Length(min = 8, max = 20, message = "密码长度在8到20位之间")
    private String confirmPassword;

    @ApiModelProperty(value = "短信验证码")
    @JsonProperty("code")
    private String code;

}
